module.exports = function(){
  return (req,res,next)=>{
    // 设置白名单
    res.setHeader("Access-Control-Allow-Origin", "*");
    res.setHeader("Access-Control-Allow-Method", "get,post");
    next();
  }
}